#ifndef PHOTOMESSAGEEVENT_H
#define PHOTOMESSAGEEVENT_H

#include "messageevent.h"

#include <QObject>


class PhotoMessageEvent : public MessageEvent
{
    Q_OBJECT
public:
    explicit PhotoMessageEvent(qint64 id,
                               qint64 sendingId,
                               qint64 conversationId,
                               qint64 createdTime,
                               qint64 senderId,
                               qint64 receiverId,
                               const QString &text,
                               QObject *parent = 0);

private:
    QString m_text;

public:
    virtual MessageEventType messageEventType() const;

public:
    inline const QString &text() const {
        return m_text;
    }

    Converse::AbstractMessage *createMessage(const Converse::AbstractConversation &conversation,
                                     QObject *parent) const;
};

#endif // PHOTOMESSAGEEVENT_H
